package me.yushuai.wukong.base.api.request;

import lombok.*;
import me.yushuai.wukong.common.api.AbstractPageable;

import java.util.Objects;

/**
 * 分页检索库位的检索条件
 *
 * @author zhoushuai@189.cn
 * @since 2022-08-31
 */
@Setter
@Getter
@ToString
public class PagingSearchLocationRequest extends AbstractPageable {

    /**
     * 库位id
     */
    private Long locId;

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        if (!super.equals(o)) {
            return false;
        }
        PagingSearchLocationRequest that = (PagingSearchLocationRequest) o;
        return Objects.equals(getLocId(), that.getLocId());
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), getLocId());
    }
}
